luci-app-attendedsysupgrade: add timeout and catch
authorPaul Spooren <[email protected]>
Mon, 9 Aug 2021 18:45:58 +0000 (08:45 -1000)
committerPaul Spooren <[email protected]>
Mon, 23 Aug 2021 19:28:29 +0000 (09:28 -1000)
commit624578d309daca1d22a4ff22b11ba12bedf24cb2
tree780f3ba6ced2fbe9fe7e90b94014990eb8a6c4ac
parented43006d9c886a26d98ce16395de9ad4f9c12e28
luci-app-attendedsysupgrade: add timeout and catch

If the upgrade server API does not respond, show an error message.
Fix #5222

While at it, minimal code linting

Signed-off-by: Paul Spooren <[email protected]>
(cherry picked from commit ff24b78c807a52a0f9afb62ba0aba1085d9ad045)
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js